package com.devops

class NexusTool {
    String url
    String token

    void initConfig(Script script){
        def configPath = "config/nexus.json"
        try {
            def content = script.libraryResourcce(configPath)
            script.echo "Content: ${jsonContent}"
        } catch(Exception e) {
            script.echo "加载资源文件失败:${configPath}"
        }
    }
}